package com.softserveinc.autorent.controller;

import com.softserveinc.autorent.model.Car;
import com.softserveinc.autorent.model.CarModel;
import com.softserveinc.autorent.model.CarStatus;
import com.softserveinc.autorent.model.CarStatusEnum;
import com.softserveinc.autorent.model.CarVendor;

public class Test {


	public static void main(String[] args) {
		
		
		CarManager cmng = new CarManager();

		
		CarVendor v = new CarVendor();
		v.setName("Mersedes");

		CarModel cm = new CarModel();
		cm.setName("Compressor");
		cm.setCarVendor(v);

		CarStatus cs = new CarStatus();
		cs.setName(CarStatusEnum.FREE);

		Car car = new Car();
		car.setNumber("123123");
		car.setVin("123123");
		car.setCarModel(cm);
		car.setCarStatus(cs);
		//cc.create(car);
		System.out.println(cmng.getEntityManager());
	}

}
